You are here: Symbol Reference > Dew Namespace > Dew.Signal Namespace > Dew.Signal.Units Namespace > Classes > SignalUtils Class > SignalUtils Methods > RunningAverage Method > SignalUtils.RunningAverage Method ([In] TVec, [In] TVec, int, int)
Dew Signal for .NET
ContentsIndexHome
PreviousUpNext
SignalUtils.RunningAverage Method ([In] TVec, [In] TVec, int, int)

Compute running average.

Syntax
C#
Visual Basic
public static void RunningAverage([In] TVec Averaged, [In] TVec Data, int Count, int Decay);

Compute running average of Data and place the result in Averaged. Count defines the Data block count already averaged and Decay defines exponential decay factor. If Decay is zero, the method will compute linear average. This can be usefull to save memory, if a very large amount of large Data blocks has to be averaged. If Decay is bigger then zero, then this routine is the vectorized version of the ExpAverageFilter routine.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!